package cn.com.dhcc.ddi.node.vo.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.ddi.node.vo.NodeInfo;

/**
 * t_ddi_node_info 节点基本信息表RowWapper
    * @ClassName: NodeInfoRowWapper
    * @Description: TODO(这里用一句话描述这个类的作用)
    * @author 18315
    * @date 2016-11-22
    *
 */

public class NodeInfoRowWapper implements RowMapper<NodeInfo> {

	@Override
	public NodeInfo mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		NodeInfo vo = new NodeInfo();
		vo.setId(rs.getString("id"));
		vo.setName(rs.getString("name"));
		vo.setOrgName(rs.getString("orgName"));
		vo.setStatus(rs.getString("status"));
		vo.setMtime(rs.getTimestamp("mtime"));
		vo.setRemark(rs.getString("remark"));
		vo.setOrgcode(rs.getString("orgcode"));
		
		vo.setSum(rs.getString("sum"));
		vo.setHour(rs.getString("hour"));
		vo.setCount(rs.getString("count"));
		return vo;
	}
	

}
